package com.ptszyxx.popose.module.base.web.vm;

import android.app.Application;
import androidx.annotation.NonNull;
import com.ptszyxx.popose.common.enums.ActionEnum;
import com.ptszyxx.popose.common.utils.YActionEventUtil;
import com.ysg.base.BaseViewModel;
import com.ysg.http.data.CommonRepository;
import com.ysg.utils.YStringUtil;

public class WebViewPayVM extends BaseViewModel<CommonRepository> {
    public WebViewPayVM(@NonNull Application application, CommonRepository model) {
        super(application, model);
    }

    public void requestAction(String payType) {
        YActionEventUtil.getInstance().upload(this, model, YStringUtil.eq(1, payType)? ActionEnum.alipay: ActionEnum.wechat_pay);
    }

}
